<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<h:head>
	<title><h:outputText value="#{msgs.listaCompleta}"></h:outputText></title>
</h:head>

<h:body>
	<f:view>
		<h:messages id="mensajes" showDetail="true" showSummary="true" />

		<h:form>
			<h3><h:outputText
				value="#{msgs.modo}, #{alumnosView.useCaseMode}" /></h3>

			<rich:dataTable value="#{alumnosView.alumnos}" var="alu">
				<f:facet name="header">
					<h:outputText value="#{msgs.listaCompleta}" />
					<div align="right"><h:commandButton
						image="/imagenes/page_add.png"
						action="#{alumnosListener.cargarNuevoAlumno}"
						title="#{msgs.nuevoAlumno}" align="right" /></div>
				</f:facet>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msgs.nombre}" />
					</f:facet>
					<h:outputText value="#{alu.nombre}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msgs.apellido}" />
					</f:facet>
					<h:outputText value="#{alu.apellido}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msgs.telefono}" />
					</f:facet>
					<h:outputText value="#{alu.telefono}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msgs.mail}" />
					</f:facet>
					<h:outputText value="#{alu.email}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="#{msgs.acciones}" />
					</f:facet>
					<h:commandButton image="/imagenes/magnifier.png"
						title="#{msgs.ver}" action="#{alumnosListener.mostrarAlumno}"></h:commandButton>
					<h:commandButton image="/imagenes/page_edit.png"
						title="#{msgs.editar}" action="#{alumnosListener.editarAlumno}"></h:commandButton>
					<h:commandButton image="/imagenes/page_delete.png"
						title="#{msgs.eliminar}"
						action="#{alumnosListener.eliminarAlumno}"></h:commandButton>
				</rich:column>
			</rich:dataTable>

			<h:commandButton value="#{msgs.volver}"
				action="#{alumnosListener.volver}" immediate="true" />
			<h:commandButton value="#{msgs.salir}"
				action="#{alumnosListener.salir}" rendered="true" immediate="true" />
		</h:form>
	</f:view>
</h:body>
</html>